package com.seednia.module.core.xport;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;

import com.seednia.foundation.framework.service.ServiceException;

/**
 * 
 * @author Young Suk Ahn
 *
 */
public interface IImporter extends IXporter {

	/**
	 * Imports data from input stream, which is in XML format, 
	 * and inserts them into the respective table using DataOrientedServices
	 * @param params TODO
	 * @param format TODO
	 * @param input
	 * @throws XportException 
	 */
	void importAppData(InputStream xmlInput, Map<String, Object> params) throws ServiceException, XportException;

	/**
	 * Imports data from file, which is in XML format, 
	 * and inserts them into the respective table using DataOrientedServices
	 * @param params TODO
	 * @param format TODO
	 * @param input
	 * @throws FileNotFoundException 
	 * @throws IOException 
	 * @throws XportException 
	 */
	void importAppData(File file, Map<String, Object> params) throws ServiceException, FileNotFoundException, IOException, XportException;
}
